﻿using UnityEngine;
using UnityEditor;
using PureMVC.Patterns;
using PureMVC.Interfaces;
using OrderSystem;

public class CookGetOrderFromWaiterCommand : SimpleCommand
{
    public override void Execute(INotification notification)
    {
        base.Execute(notification);

        CookProxy proxy = Facade.RetrieveProxy(CookProxy.NAME) as CookProxy;
        proxy.AddNewOrder(notification.Body as Order);

    }
}